package com.thinking.live.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.thinking.live.entity.LiveChargeDO;
import com.thinking.live.entity.pojo.req.LivingCostMiniReq;
import com.thinking.live.entity.pojo.req.LivingCostReq;
import com.thinking.live.entity.pojo.resp.RechargeMoneyResp;
import com.thinking.live.vo.dto.OrderPayResultDTO;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【hm_live_charge(本地生活缴费功能订单列表)】的数据库操作Service
* @createDate 2023-12-01 14:56:03
*/
public interface LiveChargeService extends IService<LiveChargeDO> {
    Map<Object, Object> queryDayLimit();

    /**
     * 查询电费支持区域及规则
     * @return
     */
    public String queryDianFeiArea();
    Map<String, Object> makeLivingChargeData(LivingCostReq costReq) throws Exception;
    Map<String, Object> makeMiniLivingChargeData(LivingCostMiniReq costReq) throws Exception;

    RechargeMoneyResp sendChargeDataToThird(OrderPayResultDTO orderPayResultDTO);
    boolean refundChargeDataToByAccountThird(String account );

    boolean refundChargeDataToThird(String orderNo );

    boolean refundChargeDataToThird(String orderNo ,String desc );

    boolean doingChargeMoneyToThird(String orderNo) ;
    public List<Map<Object, Object>> queryLivingType(String type);
    public LiveChargeDO queryLivingStatus(String liveId);
    boolean  dubbleSendOrderNo(String orderNo );

    boolean refundChargeOrderNo(String orderNo );

    /***
     * 电费充值业务判断
     * @param costReq
     * @return
     */
   // Map<String, Object> makeLivingChargeDataElecity(LivingCostReq costReq);

}
